import request from '@/utils/request'

// 查询群聊成员列表
export function listGroupMember(query) {
  return request({
    url: '/business/groupMember/list',
    method: 'get',
    params: query
  })
}

// 查询群聊成员详细
export function getGroupMember(id) {
  return request({
    url: '/business/groupMember/' + id,
    method: 'get'
  })
}

// 新增群聊成员
export function addGroupMember(data) {
  return request({
    url: '/business/groupMember',
    method: 'post',
    data: data
  })
}

// 修改群聊成员
export function updateGroupMember(data) {
  return request({
    url: '/business/groupMember',
    method: 'put',
    data: data
  })
}

// 删除群聊成员
export function delGroupMember(id) {
  return request({
    url: '/business/groupMember/' + id,
    method: 'delete'
  })
}
